import fetch from 'common/src/utils/fetch';
// 获取列表
export function queryByPage (data) {
    return fetch({
        url: '/api/majorservice/crossAdmissionPre/queryByPage',
        method: 'post',
        data
    });
}
// 获取列表
export function queryCrossResultSummaryList (data) {
    return fetch({
        url: '/api/majorservice/crossResultSummary/queryCrossResultSummaryList',
        method: 'post',
        data
    });
}
// 已发布时查成绩详情
export function queryCrossAdmissionResultSummaryList (data) {
    return fetch({
        url: '/api/majorservice/crossAdmissionResultSummary/queryCrossAdmissionResultSummaryList',
        method: 'post',
        data
    });
}
// 预录取
export function preAdmssion (data) {
    return fetch({
        url: '/api/majorservice/crossAdmissionPre/preAdmssion',
        method: 'post',
        data
    });
}
// 取消录取
export function disPreAdmssion (data) {
    return fetch({
        url: '/api/majorservice/crossAdmissionPre/disPreAdmssion',
        method: 'post',
        data
    });
}
// 发布
export function publish (data) {
    return fetch({
        url: '/api/majorservice/crossAdmissionPre/publish',
        method: 'post',
        data
    });
}
// 录取结果查询
export function queryComfirmList (data) {
    return fetch({
        url: '/api/majorservice/crossAdmissionPre/queryComfirmList',
        method: 'post',
        data
    });
}

// 录取确认
export function queryAdmissionConfirmation (data) {
    return fetch({
        url: '/api/majorservice/crossAdmissionPre/queryAdmissionConfirmation',
        method: 'post',
        data
    });
}

// 专业预录取审核导出
export function admissionPreExportList (data) {
    return fetch({
        url: '/api/majorservice/crossAdmissionPre/admissionPreExportList',
        method: 'post',
        showMask: false,
        data
    });
}
// 专业预录取审核导出pdf
export function admissionPreExportPdf (data) {
    return fetch({
        url: '/api/majorservice/crossAdmissionPre/admissionPreExportPdf',
        method: 'post',
        showMask: false,
        data
    });
}
// 录取确认导出
export function admissionComfirmExportList (data) {
    return fetch({
        url: '/api/majorservice/crossAdmissionPre/admissionComfirmExportList',
        method: 'post',
        showMask: false,
        data
    });
}
// 录取结果查询导出
export function admissionResultExportList (data) {
    return fetch({
        url: '/api/majorservice/crossAdmissionPre/admissionResultExportList',
        method: 'post',
        showMask: false,
        data
    });
}
// 查询志愿权限列表
export function queryVoluntaryPrivilegeList (data = {}) {
    return fetch({
        url: '/api/majorservice/voluntaryPrivilege/queryVoluntaryPrivilegeList',
        method: 'post',
        data
    });
}
// 确定
export function confirm (data) {
    return fetch({
        url: '/api/majorservice/crossAdmissionPre/comfirm',
        method: 'post',
        data
    });
}
// 预录取选专业查计划人数
export function getEnrollPlan (data) {
    return fetch({
        url: '/api/majorservice/enrolPlan/listForAdmissionPre',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}

// 校验预录取分数
export function validatePreResult (data) {
    return fetch({
        url: '/api/majorservice/crossAdmissionPre/preAdmssionResultValidate',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}

//跨类学籍异动
export function changeStudentStatus(data) {
  return fetch({
    url: '/api/majorservice/crossAdmissionPre/changeStudentStatus',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: data
  });
}

//跨类设置异动年级
export function changeStudentGrade(data) {
    return fetch({
      url: '/api/majorservice/crossAdmissionPre/changeStudentGrade',
      method: 'post',
      headers: {
        'Content-Type': 'application/json'
      },
      data: data
    });
  }

//跨类全部异动
export function changeBatchStudentStatus(data) {
  return fetch({
    url: '/api/majorservice/crossAdmissionPre/changeBatchStudentStatus',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: data
  });
}
